package com.yanxu;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2024/11/11-2024
 * @Description: 这里用一句话描述这个类的作用
 */
public class Test {
    public static Integer num=0;

    public static void main(String[] args) {
        method1(num);
        method2(num);
    }


    private static void method1(Integer num) {
        num++;
        System.out.println(num);
    }

    private static Integer method1Return(Integer num) {
        num++;
        System.out.println(num);
        return num;
    }

    private static void method2(Integer num) {
        System.err.println(num);
    }


}